
public class MyThreadTest {
     public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        for (int i;i<=3;++i) {
            new Thread(()->{
                list.add(UUID.radomUUID().toString().subString(0,8));
                System.out.println(list);
            } ,Syromh.valueOf(i)).start();
        }
    }
}
